package com.group3.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ls_product")
public class Product {
    @TableId(type = IdType.AUTO)
    @IsAutoIncrement
    @Column(comment = "商品id")
    private Integer pid;

    @Column(comment = "商品名称")
    private String pname;

    @Column(comment = "商品价格")
    private Double pprice;

    @Column(comment = "库存")
    private Integer stock;
    private Integer status; // 商品状态：0-下架，1-上架
}
